#ifndef SERVER_H
#define SERVER_H

#include "message.h"
#include "socket.h"
#include "control.h"
#include "list.h"
#include "filemanagement.h"

#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
#include <errno.h>
#include <cstdio>

class Server
{
    private:
        FlowControl *fc;
        List *buffer;
        void eCmdFinal(fileManagement *file);
    public:
        Server(char *DEVICE = "eth0");
        void controlServer();
        void lCmd(short int);
        void cCmd();
        void aCmd();
        void fCmd();
        void eCmd();
};

#endif
